﻿using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace EAM.Model
{
    public class EAMContext : DbContext
    {
        public DbSet<Sys_Module> Sys_Modules { get; set; }
        public DbSet<User_Dept> User_Depts { get; set; }
        public DbSet<User_Profile> User_Profiles { get; set; }
        public DbSet<aspnet_Roles> aspnet_Roles { get; set; }
        public DbSet<aspnet_Users> aspnet_Users { get; set; }
        public DbSet<Role_Priviledge> Role_Priviledges { get; set; }
        public DbSet<AssetBrandSupply> AssetBrandSupply { get; set; }
        public DbSet<AssetCategory> AssetCategory { get; set; }
        public DbSet<AssetConfigOther> AssetConfigOther { get; set; }
        public DbSet<AssetConfigOtherType> AssetConfigOtherType { get; set; }
        public DbSet<AssetFlowStep> AssetFlowStep { get; set; }
        public DbSet<AssetFlowType> AssetFlowType { get; set; }
        public DbSet<AssetInventory> AssetInventory { get; set; }
        public DbSet<AssetInventoryDetail> AssetInventoryDetail { get; set; }
        public DbSet<AssetManager> AssetManager { get; set; }
        public DbSet<AssetManagerConfig> AssetManagerConfig { get; set; }
        public DbSet<AssetMantainHistory> AssetMantainHistory { get; set; }
        public DbSet<AssetOrganizationMember> AssetOrganizationMember { get; set; }
        public DbSet<AssetUsedHistory> AssetUsedHistory { get; set; }
        public DbSet<AssetWorkFlow> AssetWorkFlow { get; set; }
        public DbSet<AssetWorkFlowStep> AssetWorkFlowStep { get; set; }
        public DbSet<FlowStepPermiss> FlowStepPermiss { get; set; }
        public DbSet<FlowStepPermissMember> FlowStepPermissMember { get; set; }
        public DbSet<TmpAssetInventory> TmpAssetInventory { get; set; }
        

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }
    }
}